<?php
/**
 * $Id: helper.php 2 2010-10-07 14:19:09Z ahmtsari $
 * Helper for bfauction Component
 *
 * @package    Joomla
 * @subpackage Components
 * @link http://www.tamlyncreative.com.au/software
 * @copyright	Copyright (c) 2010 - Tamlyn Creative Pty Ltd.
 * @license		GNU GPL
 *
 *	  BF Auction is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    BF Auction is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU General Public License for more details.
 *
 *    You should have received a copy of the GNU General Public License
 *    along with BF Auction.  If not, see <http://www.gnu.org/licenses/>.
 *
 *
 * Author's notes: When GNU speaks of free software, it is referring to freedom, not price.
 * We encourage you to purchase your copy of BF Auction from the developer (Tamlyn Creative Pty Ltd),
 * so that we can continue to make this product better and continue to provide a high quality of support.
 *
 */

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die();

class bfauctionHelper
{
	/**
	* build the select list for online store
	*/
	function onlineStore( &$onlineStore )
	{

		$click[] = JHTML::_('select.option',  'None', JText::_( 'None' ) );
		//$click[] = JHTML::_('select.option',  'VirtueMart', JText::_( 'VirtueMart' ) );
		//$click[] = JHTML::_('select.option',  'Oscommerce', JText::_( 'Oscommerce' ) );
		$click[] = JHTML::_('select.option',  'PayPal', JText::_( 'PayPal' ) );

		if($onlineStore == null){
		   $onlineStore="None";
		}

		$target = JHTML::_('select.genericlist',   $click, 'onlineStore', 'class="inputbox" size="3"', 'value', 'text',  $onlineStore );

		return $target;
	}

	/**
	* build the select list for email type
	*/
	function emailType( &$title )
	{

		$click[] = JHTML::_('select.option',  'BidConfirm', JText::_( 'BidConfirm' ) );
		$click[] = JHTML::_('select.option',  'Outbid', JText::_( 'Outbid' ) );
		//$click[] = JHTML::_('select.option',  'WinningBid', JText::_( 'WinningBid' ) );
		//$click[] = JHTML::_('select.option',  'LoosingBid', JText::_( 'LoosingBid' ) );

		if($title == null){
		   $title="BidConfirm";
		}

		$target = JHTML::_('select.genericlist',   $click, 'title', 'class="inputbox" size="2"', 'value', 'text',  $title );

		return $target;
	}	
}